package com.kaihong.template.ble.operation.constants;

/**
 * Gatt descriptor constants
 */
public class GattDescriptorConstants {
    /**
     * Enable indication type value
     */
    private static final byte[] ENABLE_INDICATION_VALUE = {0x02, 0x00};

    /**
     * Enable notification type value
     */
    private static final byte[] ENABLE_NOTIFICATION_VALUE = {0x01, 0x00};

    /**
     * Disable notification type value
     */
    private static final byte[] DISABLE_NOTIFICATION_VALUE = {0x00, 0x00};

    private GattDescriptorConstants() {
    }

    /**
     * get disable notification type value
     *
     * @return disable notification type value
     */
    public static byte[] getDisableNotificationValue() {
        return DISABLE_NOTIFICATION_VALUE.clone();
    }

    /**
     * get enable indication type value
     *
     * @return enable indication type value
     */
    public static byte[] getEnableIndicationValue() {
        return ENABLE_INDICATION_VALUE.clone();
    }

    /**
     * get enable notification type value
     *
     * @return enable notification type value
     */
    public static byte[] getEnableNotificationValue() {
        return ENABLE_NOTIFICATION_VALUE.clone();
    }
}
